package com.ucw.ucwclient.api.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.ucw.ucwclient.biz.service.impl.SchoolServiceImpl;
import com.ucw.ucwclient.dal.dataobject.School;

@RestController
@RequestMapping(value = "/test", produces = "application/json;charset=UTF-8")
public class TestController {

	@Resource
	private SchoolServiceImpl schoolService;

	@RequestMapping(method = RequestMethod.GET)
	public School testDemoInterface() {

		return schoolService.returnDemo(1);
	}
}
